package cn.hl.hm.entity;



/**
 * 推送
 * 
 * @ClassName: Push
 * @Description: model
 * @author 大和
 * @date 2016-12-28 下午3:39:30
 * 
 */
public class Push {
	public String getResourceId() {
		return resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public enum BizzTypeEnum{
		USER("user"),
		ORDER("order"),
		PZF("pzf"),
		ACTIVITY("activity"),
		AWARD("activity");
		private String name;
		public String getName(){
			return name;
		}
		public void setName(String name){
			this.name=name;
		}
		BizzTypeEnum(String name){
			this.name=name;
		}
	}
	public enum PushTypeEnum{
		USERPUSH3(3,BizzTypeEnum.USER.getName(),"审核司机资料成功"),
		USERPUSH5(5,BizzTypeEnum.USER.getName(),"审核司机资料失败"),
		USERPUSH6(6,BizzTypeEnum.USER.getName(),"审核车辆信息成功"),
		USERPUSH7(7,BizzTypeEnum.USER.getName(),"审核车辆信息失败"),
		USERPUSH8(8,BizzTypeEnum.PZF.getName(),"申请退款提交成功"),

		ORDERPUSH1(1,BizzTypeEnum.ORDER.getName(),"运营将运单派发给某司机"),
		ORDERPUSH5(5,BizzTypeEnum.ORDER.getName(),"关闭运单"),

		PZFPUSH5(5,BizzTypeEnum.PZF.getName(),"配载费扣费成功"),
		PZFPUSH6(6,BizzTypeEnum.PZF.getName(),"配载费含保全金扣费成功"),


		ACTIVITYPUSH2(2,BizzTypeEnum.ACTIVITY.getName(),"活动"),

		AWARDPUSH4(4,BizzTypeEnum.AWARD.getName(),"奖励")
		;
		private Integer id;
		private String bizzTypeName;
		private String describe;

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getBizzTypeName() {
			return bizzTypeName;
		}

		public void setBizzTypeName(String bizzTypeName) {
			this.bizzTypeName = bizzTypeName;
		}

		public String getDescribe() {
			return describe;
		}

		public void setDescribe(String describe) {
			this.describe = describe;
		}

		PushTypeEnum(Integer id, String bizzTypeName, String describe) {
			this.id = id;
			this.bizzTypeName = bizzTypeName;
			this.describe = describe;
		}
	}
    private String orderStatus;// 订单状态

    public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	private int operationType;// 用户类型：司机，发货端
    
    private String displayType;// message: 消息，通知：notification

    private String pushType;// 推送方式：message: 消息，通知：notification

    private String title;// 标题

    private String context; // 内容

    private int pushCount;// 推送条数

    private String phoneNumber;// 手机号码
    
    private String []tokenStr;// token数组
    
    private String pushClient;// token数组

	private String resourceId;//推送资源id
	/** 业务分类 **/
	private String bizzType;//推送分类，参考BizzTypeEnum
    private int ptype ;// 推送场景类型，参考PushTypeEnum

	private String pushoid; //订单ID
    
    private String timeNode; // 时间节点
    private String activityUrl; //活动URL
   
    public String getTimeNode() {
		return timeNode;
	}

	public void setTimeNode(String timeNode) {
		this.timeNode = timeNode;
	}

	public String getActivityUrl() {
		return activityUrl;
	}

	public void setActivityUrl(String activityUrl) {
		this.activityUrl = activityUrl;
	}
    public int getPtype() {
		return ptype;
	}

	public void setPtype(int ptype) {
		this.ptype = ptype;
	}

	public String getPushoid() {
		return pushoid;
	}

	public void setPushoid(String pushoid) {
		this.pushoid = pushoid;
	}

	public int getOperationType() {
		return operationType;
	}

	public void setOperationType(int operationType) {
		this.operationType = operationType;
	}

	public String getDisplayType() {
		return displayType;
	}

	public void setDisplayType(String displayType) {
		this.displayType = displayType;
	}

	public String getPushType() {
		return pushType;
	}

	public void setPushType(String pushType) {
		this.pushType = pushType;
	}

	public String[] getTokenStr() {
		return tokenStr;
	}

	public void setTokenStr(String[] tokenStr) {
		this.tokenStr = tokenStr;
	}

	public String getPushClient() {
		return pushClient;
	}

	public void setPushClient(String pushClient) {
		this.pushClient = pushClient;
	}

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public int getPushCount() {
        return pushCount;
    }

    public void setPushCount(int pushCount) {
        this.pushCount = pushCount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

	public String getBizzType() {
		return bizzType;
	}

	public void setBizzType(String bizzType) {
		this.bizzType = bizzType;
	}
}
